package com.stenio.fancat.domain.shop;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.stenio.fancat.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("fc_shop_flea")
public class FcShopFlea extends BaseEntity {
    private static final long serialVersionUID = -3847940758887973702L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("category_id")
    private Integer categoryId;

    @TableField("price")
    private Integer price;

    @TableField("stock")
    private Integer stock;

    @TableField("vender_id")
    private Integer venderId;

    @TableField("status")
    private Integer status;

    @TableField("onsale_time")
    private Date onsaleTime;

    private Date onsaleTimeBegin;
    private Date onsaleTimeEnd;

    @TableField("tag_price")
    private BigDecimal tagPrice;

    @TableField("new_degree")
    private Integer newDegree;

    @TableField("trade_way")
    private Integer tradeWay;

    @TableField("description")
    private String description;
}